package faq.entity;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import faq.biz.impl.CalssesBizImpl;
import faq.biz.impl.FaqsBizImpl;
import faq.dao.CalssesDao;
import faq.dao.impl.CalssesDaoImpl;


public class test {
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
//		CalssesBizImpl cImpl =(CalssesBizImpl) context.getBean("calssesBiz");
//		System.out.println(cImpl.getCalssesById(1).getcName());
		FaqsBizImpl fImpl =(FaqsBizImpl) context.getBean("FaqsBiz");
		for (Faqs faqs : fImpl.getFaqsByTitle("d")) {
			System.out.println(faqs.getTitle());
		}
	}
}	
